Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

more info: it depends on using " in the parameter

I did further research:
- Runtime.getRuntime.exec("/usr/bin/open /tmp/test.odt") -> works
- Runtime.getRuntime.exec("/usr/bin/open ""/tmp/test.odt""") -> does not work
- Runtime.getRuntime.exec({/usr/bin/open "/tmp/test.odt"}) -> does not work

So it depends on using " in the parameter of the command.

Question is: how do I write filenames having a space as parameter?
For example, I want to open the file "/tmp/test one.odt".

I tried the following:
- Runtime.getRuntime.exec({/usr/bin/open /tmp/test one.odt})
- Runtime.getRuntime.exec({/usr/bin/open /tmp/test\ one.odt})
- Runtime.getRuntime.exec({/usr/bin/open /tmp/test\\ one.odt})
- Runtime.getRuntime.exec({/usr/bin/open /tmp/test\\\\ one.odt})

without luck, neither of them works.
Any suggestions?


Feedback response number WEBB7L3MDH created by ~Zelda Nimnuplopetsi on 11/04/2008

Java Runtime.exec() does not work o... (~Zelda Nimnuplo... 4.Nov.08)
. . Look in the Mac OS X console (~Lorraine Minab... 4.Nov.08)
. . . . more info: it depends on using " in... (~Zelda Nimnuplo... 4.Nov.08)
. . . . . . One suggestion... (~Lily Nonjipyst... 5.Nov.08)
. . . . . . . . WORKAROUND found (~Zelda Nimnuplo... 6.Nov.08)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS